import React from 'react';
import { SearchTree } from '@szzj/ds';
import { jsx as _jsx } from "react/jsx-runtime";
var treeData = [{
  key: '1',
  title: 'parent 1',
  children: [{
    key: '1-0',
    title: 'parent 1-0',
    disabled: true,
    children: [{
      key: '1-0-1',
      title: 'leaf1'
    }, {
      key: '1-0-2',
      title: 'leaf2'
    }]
  }, {
    key: '1-1',
    title: 'parent 1-1',
    children: [{
      key: '1-1-3',
      title: 'leaf3'
    }]
  }]
}];
export default (function () {
  return /*#__PURE__*/_jsx(SearchTree, {
    title: "\u90E8\u95E8\u9009\u62E9",
    treeData: treeData,
    showTitle: true,
    autoExpandParent: true
    // defaultExpandedKeys={['1']}
    ,
    onSelect: function onSelect(value) {
      console.log(value);
    },
    checkable: true
  });
});